import { ref } from 'vue'

export type LoadingType = 'default' | 'dly'

const currentType = ref<LoadingType>('default')

export function useLoading() {
  const setLoadingType = (type: LoadingType) => {
    currentType.value = type
  }

  return {
    currentType,
    setLoadingType
  }
}
